package net.bwie.realtime.jtp.ads.trade.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    public String orderId;
    public String userId;
    public String anchorId; // 主播ID
    public String itemId;
    public Double price;    // 商品价格
    public Long ts;         // 订单时间戳

    public Order() {}

    public Order(String orderId, String userId, String anchorId, String itemId, Double price, Long ts) {
        this.orderId = orderId;
        this.userId = userId;
        this.anchorId = anchorId;
        this.itemId = itemId;
        this.price = price;
        this.ts = ts;
    }
}
